<?php
namespace App\Params\Backend;
use App\Params\Param;
/**
 * 品牌保存参数
 *
 * @author: WangBin
 * @date: 2021/7/26
 * @mail: <849850352@qq.com>
 */
class BrandUpdateParam extends Param
{
    public $brand_id = 0;
    public $store_id = 0;
    public $name;
    public $logo_url = '';
    public $brand_bn = '';
    public $remark = '';
    public $is_active = 1;

    public function rules()
    {
        return [
            'name' => 'required|string',
            'brand_id' => 'nullable|integer',
            'is_active' => 'boolean',
            'brand_bn' => 'nullable|string',
            'logo_url' => 'nullable|string',
            'store_id' => 'nullable|integer',
            'remark' => 'nullable|string',
        ];
    }

    /**
     * @return int
     */
    public function getBrandId(): int
    {
        return $this->brand_id;
    }

    /**
     * @param int $brand_id
     */
    public function setBrandId(int $brand_id): void
    {
        $this->brand_id = $brand_id;
    }

    /**
     * @return int
     */
    public function getStoreId(): int
    {
        return $this->store_id;
    }

    /**
     * @param int $store_id
     */
    public function setStoreId(int $store_id): void
    {
        $this->store_id = $store_id;
    }

    /**
     * @return mixed
     */
    public function getName()
    {
        return $this->name;
    }

    /**
     * @param mixed $name
     */
    public function setName($name): void
    {
        $this->name = $name;
    }

    /**
     * @return string
     */
    public function getLogoUrl(): string
    {
        return $this->logo_url;
    }

    /**
     * @param string $logo_url
     */
    public function setLogoUrl(string $logo_url): void
    {
        $this->logo_url = $logo_url;
    }

    /**
     * @return string
     */
    public function getBrandBn(): string
    {
        return $this->brand_bn;
    }

    /**
     * @param string $brand_bn
     */
    public function setBrandBn(string $brand_bn): void
    {
        $this->brand_bn = $brand_bn;
    }

    /**
     * @return string
     */
    public function getRemark(): string
    {
        return $this->remark;
    }

    /**
     * @param string $remark
     */
    public function setRemark(string $remark): void
    {
        $this->remark = $remark;
    }

    /**
     * @return int
     */
    public function getIsActive(): int
    {
        return $this->is_active;
    }

    /**
     * @param int $is_active
     */
    public function setIsActive(int $is_active): void
    {
        $this->is_active = $is_active;
    }
}
